package com.learnJava.capsulation;

public class Student {
    String name;
    private double chinese;
    private double english;

    public double getChinese() {
        return this.chinese;
    }
    public double getEnglish() {
        return this.english;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void setChinese(double chinese) {
        if (chinese >= 0 && chinese <= 100)
            this.chinese = chinese;
    }
    public void setEnglish(double english) {
        if (english >= 0 && english <= 100)
            this.english = english;
    }
}
